<template>
	<div class="header-hot">
		<div class="hot-top">
			<span class="iconfont fire">&#xe6e7;</span>
			<label class="hot-til">本周热门榜单</label>
			<label class="hot-right">
				全部榜单
				<span class="iconfont">&#xe637;</span>
			</label>
		</div>
		<ul>
			<li class="hot-list" v-for="(item,index) in HotList" :key="index">
				<img :src="item.hotUrl" />
				<p class="item-til">{{item.hottil}}</p>
				<p>
					<span>{{item.price}}</span>
				</p>
			</li>
		</ul>
	</div>
	<div class="kong">

	</div>
</template>

<script>
	export default {
		props: ['HotList'],
		data() {
			return {

			}
		}
	}
</script>

<style scoped>
	.header-hot {
		width: 100%;
		background-color: white;
		font-size: 0.28rem;
		/* margin-top: 0.4rem; */
		padding-bottom: 1rem;
	}

	.hot-top {
		line-height: 1rem;
		padding-left: 0.2rem;
	}

	.fire {
		color: orangered !important;
		font-size: 0.48rem;
	}

	.hot-til {
		color: #212121;
		font-size: 0.4rem;
		font-weight: bold;
	}
	ul{
		text-align: center;
	}
	.hot-right {
		color: #616161;
		float: right;
		font-size: 0.32rem;
		display: inline-block;
		margin-right: 0.2rem;
	}

	.header-hot ul {
		width: 100%;
		overflow: hidden;
		white-space: nowrap;
		overflow-x: scroll;
		padding-bottom: 0.5rem;
	}

	.hot-list {
		width: 2rem;
		height: 2rem;
		padding: 0.2rem;
		display: inline-block;
	}

	.hot-list img {
		width: 100%;
		height: 100%;
	}

	.item-til {
		margin-top: 0.2rem;
		margin-bottom: 0.2rem;
		overflow: hidden;
		text-overflow: ellipsis;
		/* 文本符号 */
		white-space: nowrap;
	}

	.kong {
		height: 20px;
		background-color: #CCCCCC;
	}
</style>
